package com.zhang.spring.boot.mongo;

import java.util.List;

public interface TestDao extends MongoRepository<Foo> {

    @NativeQuery(value = "{x:\"?1\"}")
    public List<Foo> findByX(double x);


    @NativeQuery(value = "{$or:[{x:\"?1\"},{x:\"?2\"}]}")
    public List<Foo> findOrX(double x1,double x2);


    public List<Foo> findByXAndY(double x1,double x2);
}
